package com.bcn.login_mybatis_demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 大白菜
 * @date Created in 2022/9/26 14:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    public Integer uid;
    public String uname;
    public String uaccount;
    private String upassword;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Integer roleId;
    private String roleName;

}
